package nl.ru.rd.facedetection.nnbfd.tests;

import nl.ru.rd.facedetection.nnbfd.neuralnetwork.NeuralNetwork;

/**
 * Test a simple network by testing the AND binary operation.
 * @author Wouter Geraedts (s0814857)
 */
public class AndTest extends Test
{
	public void test()
	{
		this.set = new double[][][] {
				{{0, 0}, {0}},
				{{1, 0}, {0}},
				{{0, 1}, {0}},
				{{1, 1}, {1}}
		};
		
		NeuralNetwork network = new SimpleNetwork();
		this.learn(network, 0.05);
	}
	
	public static void main(String[] args)
	{
		AndTest test = new AndTest();
		test.test();
	}
}
